﻿@using Webdiyer.WebControls.Mvc
@model List<MvcWeb.ViewModels.Manager.AssetCollectModel>
@{
    ViewBag.Title = "资产汇总";
}
@if (false)
{
        <script src="../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
}

<div style="padding: 5px 10px;">
    <span class="btn_green">资产汇总</span>
</div>



<div style="padding: 0px 10px;">
    <table class="tb" width="98%" style="text-align: center;">
        <tr>
            <th>资产名称</th>
            <th>使用数量</th>
            <th>库存数量</th>
            <th>报废数量</th>
            <th>销毁数量</th>
            <th>总数量</th>
        </tr>
        @foreach (var m in Model)
        {
            <tr>
                <td>@m.CategoryName</td>
                <td><a href="@Url.Action("AssetCollectDetail", "Manager", new { assetCID = m.CategoryID,assetStatus = (int)MvcWeb.EAMEnum.AssetStatusEnum.使用中 })">@m.CategoryUsedCount</a></td>
                <td><a href="@Url.Action("AssetCollectDetail", "Manager", new { assetCID = m.CategoryID,assetStatus = (int)MvcWeb.EAMEnum.AssetStatusEnum.库存 })">@m.CategoryStoredCount</a></td>
                <td><a href="@Url.Action("AssetCollectDetail", "Manager", new { assetCID = m.CategoryID,assetStatus = (int)MvcWeb.EAMEnum.AssetStatusEnum.报废 })">@m.CategoryWorthlessCount</a></td>
                <td><a href="@Url.Action("AssetCollectDetail", "Manager", new { assetCID = m.CategoryID,assetStatus = (int)MvcWeb.EAMEnum.AssetStatusEnum.报废 })">@m.CategoryDestoryCount</a></td>
                <td><a href="@Url.Action("AssetCollectDetail", "Manager", new { assetCID = m.CategoryID })">@m.CategoryAllCount</a></td>
            </tr>
        }
    </table>
</div>
